package xyz.bali16.module.article.model.comment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("添加目录参数")
public class CommentAddParam {
    @ApiModelProperty(name = "userId", value = "用户Id", required = true)
    @NotNull(message = "用户id不能为空")
    private String userId;
    @ApiModelProperty(name = "entityType", value = "评论目标的类型（帖子 0、评论 1）", required = true)
    @NotNull(message = "评论目标类型不可为空")
    private Integer entityType;
    @ApiModelProperty(name = "entityId", value = "目标id", required = true)
    @NotNull(message = "目标id不可为空")
    private String entityId;
    @ApiModelProperty(name = "targetId", value = "指明对哪个用户进行评论（用户id）", required = true)
    @NotNull(message = "评论指向目标不可为空")
    private String targetId;
    @ApiModelProperty(name = "content", value = "评论内容", required = true)
    @NotNull(message = "评论内容类型不可为空")
    private String content;
    @ApiModelProperty(name = "status", value = "评论状态 0禁用 1正常", required = true)
    @NotNull(message = "状态不可为空")
    private Integer status;
}
